package main;

import independentes.ZerarVetor;

public class Main {
	
	public static void main(String[] args) {
		Thread t1 = new Thread(new ZerarVetor(new int[] {Integer.MAX_VALUE, Integer.MIN_VALUE}));
		Thread t2 = new Thread(new ZerarVetor(new int[] {Integer.MAX_VALUE, Integer.MIN_VALUE}));
		Thread t3 = new Thread(new ZerarVetor(new int[] {Integer.MAX_VALUE, Integer.MIN_VALUE}));
		Thread t4 = new Thread(new ZerarVetor(new int[] {Integer.MAX_VALUE, Integer.MIN_VALUE}));
		
		long comeco, fim;
		comeco = System.currentTimeMillis();
		t1.start();
		t2.start();
		t3.start();
		t4.start();
		
		try {
			t1.join();
			t2.join();
			t3.join();
			t4.join();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		
		fim = System.currentTimeMillis();
		
		System.out.println(fim - comeco);
		
		
	}
}